package com.bw.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.domain.SysUserRole;
import com.bw.mapper.SysUserMapper;
import com.bw.service.SysUserRoleService;
import com.bw.mapper.SysUserRoleMapper;
import com.bw.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author THINKAPD
* @description 针对表【sys_user_role】的数据库操作Service实现
* @createDate 2024-03-04 15:28:13
*/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole>
    implements SysUserRoleService{
    @Autowired
    SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<Integer> listRoleByUserId(Integer userId) {
        return sysUserRoleMapper.listRoleByUserId(userId);
    }
}




